<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Login Page</title>

<%-- <%
	String sessionValidation = (String) session
			.getAttribute("sessionValidation");
	if (!(("validSession").equals(sessionValidation))) {
		request.setAttribute("errorMessage", "Session Timeout!");
%>
<jsp:forward page="Login.jsp" />
<%
	}
%> --%>

<!-- BEANS DECLARATION -->
<jsp:useBean id="messageBean" scope="session"
	class="edu.uic.ids517.model.MessageBean">
</jsp:useBean>
<jsp:useBean id="dbaseBean" scope="session"
	class="edu.uic.ids517.model.DatabaseAccessBean"></jsp:useBean>
<jsp:useBean id="dbmsUserBean" scope="session"
	class="edu.uic.ids517.model.DbLoginBean"></jsp:useBean>
<jsp:useBean id="userLoginBean" scope="session"
	class="edu.uic.ids517.model.UserLoginBean"></jsp:useBean>
</head>

<body background="images/image1.jpg">
	<center>
		<h1>
			<font size="8" color="white">UIC Data Mining Tool</font>
		</h1>
		<br /> <br /> <br /> <a href="mainMenu.jsp"><font size="6"
			color="white">Home</font></a>
		<!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="dbAccess.jsp"><font size="6" color="white">Database Access</font></a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="dataMiningTool.jsp"><font  size="6" color="white">Data Mining Tool</font></a>
		 -->
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="LogOut.jsp"><font
			size="6" color="white">Logout</font></a> <br />
		<hr>
		<br />
	</center>



	<!-- ACTION FORM -->
	<form action="LoginServlet" method="post">
		<table>
			<tr>
				<td>
					<% 	String errorMessage = (String)request.getAttribute("errorMessage"); %>
					<% if (("Please Login First").equals(errorMessage)) { %>
					<center>
						<font size="6" color="white"> <%=errorMessage%>

						</font>
					</center> <% } %>
				</td>
			</tr>
			<tr>
				<th align="right"><font size="6" color="white">User
						name:</font></th>
				<td><input TYPE="TEXT" name="userName" size="16"></td>
			</tr>
			<tr>
				<th align="right"><font size="6" color="white">Password:</font></th>
				<td><input TYPE="PASSWORD" name="password" size="16"></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td></td>
				<td><input TYPE="SUBMIT" value="Login"> &nbsp;&nbsp; <input
					TYPE="reset" value="Reset"></td>
			</tr>
		</table>
		<br> <br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
			size="6" color="white"> New User ?</font> &nbsp;&nbsp; <a
			href="http://localhost:8080/DATAMINING_Project1/SignUp.jsp"> <font
			size="6" color="white">SignUp</font>
		</a>&nbsp;<br> <br>
	</form>

</body>


</html>